/**
 * Description: Utils.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Mar 19, 2009 10:26:39 AM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Description: 
 * 工具类，存放各种工具方法（静态方法）。
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Mar 19, 2009 10:26:39 AM 李萌（neolimeng@gmail.com）created
 */
public class Utils {
	public static String getFormatedDateTime(Date date){
		SimpleDateFormat tempDate=new SimpleDateFormat("yyyy-MM-dd"+" "+"hh:mm:ss");
		return tempDate.format(date);
	}
	
	public static boolean notNull(String str) {
		if(null == str)
			return false;
		if("".equals(str.trim())) {
			return false;
		}
		return true;
	}
	
	public static void main(String[] args){
		System.out.println(Utils.getFormatedDateTime(new Date()));
	}
}
